{% extends "manabe/template.html" %}
{% load static %}

{% block title %}
更改密码
{% endblock %}
{% block content %}
当前邮箱：  {{ email }}
    {% if change_email_success %}
        <div class="Huialert Huialert-success">
            <i class="Hui-iconfont">&#xe6a6;</i>已成功更新邮箱！
        </div>
    {% endif %}
    <form action="" class="form form-horizontal" method="post">
    {% csrf_token %}
    <div class="row cl">
        <div class="formControls col-xs-8">
            {{ form.new_email }}
        </div>
    </div>
        <div class="row cl">
        <div class="formControls col-xs-8">
            {{ form.new_email2 }}
        </div>
    </div>
    <div class="row cl text-l">
        {% for item in error %}
            <p style="color: red;" class="text-l">{{ item }}</p>
        {% endfor %}
        <div class="formControls">
            <input type="submit" class="btn btn-success radius size-L" value="更改邮箱">
        </div>
    </div>
    </form>
{% endblock %}